<?php

namespace backend\models\user;

use Yii;

/**
 * This is the model class for table "{{%member}}".
 *
 * @property integer $user_id
 * @property string $true_name
 * @property string $telephone
 * @property string $mobile
 * @property integer $area
 * @property string $contact_addr
 * @property string $qq
 * @property integer $sex
 * @property string $birthday
 * @property integer $point
 * @property integer $status
 */
class JobMember extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%member}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['area', 'sex', 'point', 'status'], 'integer'],
            [['birthday'], 'safe'],
            [['true_name', 'telephone'], 'string', 'max' => 50],
            [['mobile'], 'string', 'max' => 20],
            [['contact_addr'], 'string', 'max' => 250],
            [['qq'], 'string', 'max' => 15]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'user_id' => 'User ID',
            'true_name' => 'True Name',
            'telephone' => 'Telephone',
            'mobile' => 'Mobile',
            'area' => 'Area',
            'contact_addr' => 'Contact Addr',
            'qq' => 'Qq',
            'sex' => 'Sex',
            'birthday' => 'Birthday',
            'point' => 'Point',
            'status' => 'Status',
        ];
    }
}
